<script>
  import { getAllEnum } from '@/api/menu.js';
  export default {
    components: {},
    async created() {
      // 获取所有枚举类
      if (!this.$store.state.app.allEnums) {
        const data = await getAllEnum();
        if (data.data) this.$store.commit('app/SET_ALL_ENUM', data.data);
      }
    },
    async mounted() {
      // 按钮颜色
      document.body.style.setProperty('--el-color-primary', '#358F80');
      // 按钮点击颜色
      document.body.style.setProperty('--el-color-primary-dark-2', '#14746F');
      // 按钮hover颜色
      document.body.style.setProperty('--el-color-primary-light-3', '#67B99A');
      // 文字按钮hover颜色
      document.body.style.setProperty('--el-color-primary-light-5', '#67B99A');
    },
  };
</script>

<template>
  <div id="app">
    <router-view />
  </div>
</template>

<style lang="scss">
  @import './src/assets/scss/colorUI.scss';
  @import './src/assets/scss/index.scss';
  @import url('//at.alicdn.com/t/c/font_4172674_e2ps2qljoda.css');
  // @import url('//at.alicdn.com/t/c/font_4172674_5i4l1swtl8x.css');
  //at.alicdn.com/t/c/font_4172674_5i4l1swtl8x.css
</style>
